package com.hg.chapter1.config;

public class Bean2 {

    private Bean1 bean1;

    public void setBean1(Bean1 bean1) {
        this.bean1 = bean1;
    }

    public void say() {
        System.out.println(bean1.getMsg());
    }
}
